{% block sw_grid_row %}
<div
    ref="swGridRow"
    class="sw-grid-row"
    role="row"
    tabindex="0"
    @dblclick="onInlineEditStart($event.currentTarget)"
>
    {% block sw_grid_row_actions %}
    <div class="sw-grid-row__actions">
        <slot name="actions">
            {% block sw_grid_row_slot_actions %}
            <mt-button
                size="small"
                variant="secondary"
                @click="onInlineEditCancel(id, index)"
            >
                {{ $tc('global.default.cancel') }}
            </mt-button>
            <mt-button
                class="sw-grid-row__inline-edit-action"
                variant="primary"
                size="small"
                @click="onInlineEditFinish"
            >
                {{ $tc('global.default.save') }}
            </mt-button>
            {% endblock %}
        </slot>
    </div>
    {% endblock %}

    <slot>
    {% block sw_grid_row_slot_default %}{% endblock %}
    </slot>
</div>
{% endblock %}
